package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

/**
 * Created by WHH-PC on 2018/1/26.
 */
public class TargetEntity extends BaseEntity {
    private String userId;
    private String targetDate;
    private Integer faceTarget;
    private Integer telTarget;
    private String createUserId;
    private String companyId;
    private String regionId;
    private String bigRegionId;
    private Integer targetType;



    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTargetDate() {
        return targetDate;
    }

    public void setTargetDate(String targetDate) {
        this.targetDate = targetDate;
    }

    public Integer getFaceTarget() {
        return faceTarget;
    }

    public void setFaceTarget(Integer faceTarget) {
        this.faceTarget = faceTarget;
    }

    public Integer getTelTarget() {
        return telTarget;
    }

    public void setTelTarget(Integer telTarget) {
        this.telTarget = telTarget;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getBigRegionId() {
        return bigRegionId;
    }

    public void setBigRegionId(String bigRegionId) {
        this.bigRegionId = bigRegionId;
    }

    public Integer getTargetType() {
        return targetType;
    }

    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("USER_ID", getUserId());
        obj.put("TARGET_DATE", getTargetDate());
        obj.put("FACE_TARGET", getFaceTarget());
        obj.put("TEL_TARGET", getTelTarget());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("REGION_ID", getRegionId());
        obj.put("BIG_REGION_ID", getBigRegionId());
        obj.put("TARGET_TYPE", getTargetType());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_TARGET";
    }

    @Override
    public String getViewName() {
        return "V_SYS_TARGET";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("USER_ID", "userId");
        obj.put("TARGET_DATE", "targetDate");
        obj.put("FACE_TARGET", "faceTarget");
        obj.put("TEL_TARGET", "telTarget");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("COMPANY_ID", "companyId");
        obj.put("REGION_ID", "regionId");
        obj.put("BIG_REGION_ID", "bigRegionId");
        obj.put("TARGET_TYPE", "targetType");
        return obj;
    }
}
